package com.ruoyi.security;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@ServletComponentScan
@EnableTransactionManagement

//表示开启授权服务器的自动化配置
@EnableAuthorizationServer

public class RuoyiSecurityApplication {
    public static void main(String[] args) {
        SpringApplication.run(RuoyiSecurityApplication.class, args);
    }
}
